package com.bdqn.Service.Contract.impl;

import com.bdqn.Service.Contract.ContractService;
import com.bdqn.entity.Contract;
import com.bdqn.mapper.Contract.ContractMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ContractImplService implements ContractService {
    @Resource
    ContractMapper contractMapper;


    @Override
    public boolean Insert(Contract contract) {
        return contractMapper.Insert(contract);
    }

    @Override
    public List<Contract> findAll(Contract ord, int page, int limit) {
        return contractMapper.findAll(ord, page, limit);
    }

    @Override
    public int getCount(Contract ord) {
        return contractMapper.getCount(ord);
    }

    @Override
    public boolean Update(Contract contract) {
        return contractMapper.Update(contract);
    }

    @Override
    public Contract SelectByCont(Contract contract) {
        return contractMapper.SelectByCont(contract);
    }

    @Override
    public boolean DelById(Contract contract) {
        return contractMapper.DelById(contract);
    }

    @Override
    public List<Contract> SelectContract(Contract ord, int page, int limit) {
        return contractMapper.SelectContract(ord,page,limit);
    }

    @Override
    public int SelectContractCount(Contract ord) {
        return contractMapper.SelectContractCount(ord);
    }
}
